<div class="login">
    <div class="log-title">LOGIN</div>
    <div class="log-content"> 
        {$form['begin']}
            <table cellpadding="0" cellspacing="10" width="100%" border="0">
                <tr>
                    <td>User Name: </td> <td><input type="text" name="username" value="{Obj()->get('username', null, '')}" /></td>
                </tr>
                <tr>
                    <td>Password: </td> <td><input type="password" name="password" value="{Obj()->get('password', null, '')}" /></td>
                </tr>
                <tr>
                    <td>&nbsp;</td> <td><input type="submit" value="Login" /></td>
                </tr>
            </table> 
        {$form['end']}
    </div>
</div> 
<script type="text/javascript"> $('form[name="AdminLoginForm"]').submit(function(){ var data = $(this).serialize(); $.ajaxHistory.ajax(location.hash, data); return false; }); </script>